package com.ytjj.qmyx.admin.dao;

import com.ytjj.qmyx.admin.model.request.DynamicRequest;
import com.ytjj.qmyx.admin.model.request.DynamicSpecialRequest;
import com.ytjj.qmyx.admin.model.response.DynamicModeResponse;
import com.ytjj.qmyx.admin.model.response.DynamicResponse;
import com.ytjj.qmyx.mall.model.Dynamic;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description 动态dao
 *
 *  * @Version 1.0
 * 
 */
public interface DynamicDao {

    /**
     * 查询动态信息
     *
     * @param dynamicRequest
     * @return
     */
    List<DynamicResponse> queryDynamic(DynamicRequest dynamicRequest);

    List<DynamicModeResponse> getDynamicsById(DynamicSpecialRequest dynamicSpecialRequest);

    Integer selectCount(Integer id);

    Integer isExists(@Param("specialId") Integer specialId, @Param("dynamicId") Integer dynamicId);

    Integer countUsePushNum(Integer userId, Integer productId);
}
